
<% var pageLevelJS = { %>
<%include("/WEB-INF/views/btl/template/include/select2.html"){}%>
<script type="text/javascript">
var settings = {
		 modelDomainFlag:"sys"
		 ,modelName:"安全名单"
		 ,modelFlag:"securitylist"
		 ,key:"${sessionId}" 
		}
</script> 
<script type="text/javascript" src="${ctx}/static/js/sys/securitylist/edit.js"></script>
<%};%> 
<% var layoutParas =
{"title":"","add":isEmpty(data.id),"formId":"applyeditForm","pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicEditFormTemplate.html", layoutParas){ %>
	 <input type="hidden" name="id" value="${data.id}" >
 	 <div class="form-group col-md-5">
	     <label class="required-before col-sm-3 control-label no-padding-right" for="ip">IP:</label>
	     <div class="col-sm-9 inline-height">
	    	 <input type="text" oldval="${data.ip}" value="${data.ip}" class="validate[required,maxSize[50]] col-xs-10" name="ip" placeholder="IP">
		</div>
	  </div>
	  <div class="form-group  col-md-5">
		     <label for="categoryCode" class="col-sm-3 control-label no-padding-right">类别:</label>
			<div class="col-sm-9 inline-height ">
			 <select placeholder="类别" name="categoryCode" oldval="${data.categoryCode}" class="col-xs-10">
					<option value="0"
					 <%if(data.categoryCode=="0"){%>
					  selected="selected"
					 <%}%>
					>黑名单</option>
					<option value="1"
					 <%if(data.categoryCode=="1"){%>
					  selected="selected"
					 <%}%>
					>白名单</option>
			</select>
	      </div> 
	  </div> 
	 <div class="form-group col-md-5">
	     <label for="startDate" class="col-sm-3 control-label no-padding-right">有效期开始日期:</label>
 			 <div class="col-sm-9 inline-height" style="" >
		     <input  style="height:32px;" oldval="${data.startDt!,dateFormat='yyyy-MM-dd'}" value="${data.startDt!,dateFormat='yyyy-MM-dd'}" class="Wdate col-xs-10" type="text" name="startDt" id="startDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'endDate\')}'})"    placeholder="请输入开始日期"/>
		  </div>
	  </div>
	 <div class="form-group col-md-5">
	     <label for="startDate" class="col-sm-3 control-label no-padding-right">有效期结束日期:</label>
 			 <div class="col-sm-9 inline-height" style="" >
		     <input  style="height:32px;" oldval="${data.endDt!,dateFormat='yyyy-MM-dd'}" value="${data.endDt!,dateFormat='yyyy-MM-dd'}" class="Wdate col-xs-10" type="text" name="endDt" id="endDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'startDate\')}'})"    placeholder="请输入结束日期"/>
		  </div>
	  </div>
	  <%if(has(sysFlags) && sysFlags.~size>1){ %>
	     <div class="form-group col-md-5">
		     <label class="required-before col-sm-3 control-label no-padding-right" for="instanceId">所属系统:</label>
			 <div class="col-sm-9 inline-height ">
			   <select placeholder="所属系统" name="instanceId" oldval="${data.instanceId}" class="col-xs-10">
					<% for(res in sysFlags!){ %>
					  <option value="${res.id}"
					   <%if(data.instanceId==res.id){%>
						  selected="selected"
						 <%}%>
					  >${res.nameStr}</option>
				　　   <% } %>
				</select>
		  	 </div>
		  </div>
	  <%} %>
	  <div class="form-group col-md-5">
	     <label for="remark" class="col-sm-3 control-label no-padding-right">备注:</label>
	     <div class="col-sm-9 inline-height">
		    <input type="text"  oldval="${data.remark}" value="${data.remark}" class="validate[maxSize[50]] col-xs-10" name="remark" placeholder="备注">
		  </div>
	  </div>	  
<%} %>